﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
using System.Collections;

namespace BUS
{
    public class ChiTietPhieuNhapBUS
    {
        public static int ThemChiTietPhieuNhap(ChiTietPhieuNhapDTO dv)
        {
            return ChiTietPhieuNhapDAO.ThemChiTietPhieuNhap(dv);
        }
        public static ChiTietPhieuNhapDTO LayThongTinCTPhieuNhap(String ma)
        {
            return ChiTietPhieuNhapDAO.LayThongTinCTPhieuNhap(ma);
        }

        public static int CapNhat(ChiTietPhieuNhapDTO ctpn)
        {
            return ChiTietPhieuNhapDAO.CapNhat(ctpn);
        }
        public static int XoaLuon(String ma)
        {
            return ChiTietPhieuNhapDAO.XoaLuon(ma);
        }
        public static ArrayList LayDanhSachTheoPhieuNhap(String mapn)
        {
            return ChiTietPhieuNhapDAO.LayDanhSachTheoPhieuNhap(mapn);
        }
        public static int Xoa(String ma)
        {
            return ChiTietPhieuNhapDAO.Xoa(ma);
        }
        public static ArrayList LayDanhSachTheoSachVaThoiGian(String masach, DateTime thoigian)
        {
            return ChiTietPhieuNhapDAO.LayDanhSachTheoSachVaThoiGian(masach, thoigian);
        }
    }
}
